package com.ytkj.digitalConstruction.httpbean.permission;

import java.util.List;

import com.ytkj.digitalConstruction.entity.permission.Flow;

/**
 * 流程
 * @author iking
 *
 */
public class ResFlow extends Flow {

	private List<ResFlow> flows;

	/** 流程操作关联ID */
	private int id;

	private ResOperation operation;

	public ResFlow(Flow flow) {
		setFlowId(flow.getFlowId());
		setFlowName(flow.getFlowName());
		setFlowOrder(flow.getFlowOrder());
		setParentId(flow.getParentId());
		setNextRole(flow.getNextRole());
	}

	/**
	 * @return the flows
	 */
	public List<ResFlow> getFlows() {
		return flows;
	}

	/**
	 * @param flows
	 *            the flows to set
	 */
	public void setFlows(List<ResFlow> flows) {
		this.flows = flows;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the operation
	 */
	public ResOperation getOperation() {
		return operation;
	}

	/**
	 * @param operation
	 *            the operation to set
	 */
	public void setOperation(ResOperation operation) {
		this.operation = operation;
	}

}
